package com.yf.yfwebview.command

import android.util.Log
import android.widget.Toast
import com.android.baselibrary.app.MainApplication
import com.google.auto.service.AutoService

@AutoService(Command::class)
class ToastCommand : Command {
    override fun name(): String {
      return  "showToast"
    }

    override fun handleCommand(name: String, param: String) {
        Toast.makeText(MainApplication.mainApplication, name.plus(param), Toast.LENGTH_SHORT).show()
    }
}